home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / chrome / browser.jar / content / browser / bookmarks / bookmarksManager.xul < prev    next >
Extensible Markup Language  |  2007-08-31  |  14KB  |  254 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  5. <?xml-stylesheet href="chrome://browser/skin/bookmarks/bookmarksManager.css" type="text/css"?>
  6. <?xml-stylesheet href="chrome://browser/content/bookmarks/bookmarks.css" type="text/css"?>
  7. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  8. <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
  9. <?xml-stylesheet href="chrome://browser/skin/bookmarks/bookmarksSidebar.css" type="text/css"?>
  10.  
  11. <!DOCTYPE window [
  12. <!ENTITY % bookmarksDTD SYSTEM "chrome://browser/locale/bookmarks/bookmarks.dtd">
  13. %bookmarksDTD;
  14. <!ENTITY % favoritesManagerDTD SYSTEM "chrome://flock/locale/favorites/favoritesManager.dtd" >
  15. %favoritesManagerDTD;
  16. ]>
  17. <window id="bookmark-window" windowtype="bookmarks:manager"
  18.         title="&bookmarksWindowTitle.label;"
  19.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  20.         xmlns:web="http://home.netscape.com/WEB-rdf#"
  21.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  22.         width="630" height="400" screenX="20" screenY="20"
  23.         persist="width height screenX screenY sizemode"
  24.         onload="Startup();" onunload="Shutdown();"
  25.         onclose="return closeWindow(false);">
  26.  
  27.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  28.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  29.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  30.   <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
  31.   <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarks.js"/>
  32.   <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarksManager.js"/>
  33.   <script type="application/x-javascript" src="chrome://browser/content/bookmarks/flockBookmarksHelper.js"/>
  34.   <script type="application/x-javascript" src="chrome://browser/content/bookmarks/onlineBookmarksSharing.js"/>
  35.   <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarksCommonFeatures.js"/>
  36.   <?xml-stylesheet href="chrome://browser/content/flock/bindings/bindings.css" type="text/css"?>
  37.   <stringbundleset id="stringbundleset"/>
  38.  
  39.   <commandset id="editMenuCommands"/>
  40.   <commandset id="CommandUpdate_Bookmarks"
  41.               events="focus,tree-select"
  42.               oncommandupdate="document.getElementById('bookmarks-view').onCommandUpdate();">
  43.   </commandset>
  44.  
  45.   <command id="cmd_close" oncommand="closeWindow(true);"/>
  46.   <command id="cmd_bm_open"                      oncommand="goDoCommand('cmd_bm_open');"/>
  47.   <command id="cmd_bm_openinnewwindow"           oncommand="goDoCommand('cmd_bm_openinnewwindow');"/>
  48.   <command id="cmd_bm_openinnewtab"              oncommand="goDoCommand('cmd_bm_openinnewtab');"/>
  49.   <command id="cmd_bm_openfolder"                oncommand="goDoCommand('cmd_bm_openfolder');"/>
  50.   <command id="cmd_bm_managefolder"              oncommand="goDoCommand('cmd_bm_managefolder');"/>
  51.   <command id="cmd_bm_newfolder"                 oncommand="goDoCommand('cmd_bm_newfolder');"/>
  52.   <command id="cmd_bm_newbookmark"               oncommand="Components.classes['@flock.com/metrics-service;1'].getService(Components.interfaces.flockIMetricsService).reportCount('new favorite from manager');goDoCommand('cmd_bm_newbookmark');"/>
  53.   <command id="cmd_bm_newlivemark"               oncommand="Components.classes['@flock.com/metrics-service;1'].getService(Components.interfaces.flockIMetricsService).reportCount('new livemark from manager');goDoCommand('cmd_bm_newlivemark');"/>
  54.   <command id="cmd_bm_newseparator"              oncommand="goDoCommand('cmd_bm_newseparator');"/>
  55.   <command id="cmd_bm_find"                      oncommand="goDoCommand('cmd_bm_find');"/>
  56.   <command id="cmd_bm_setnewbookmarkfolder"      oncommand="goDoCommand('cmd_bm_setnewbookmarkfolder');"/>
  57.   <command id="cmd_bm_setpersonaltoolbarfolder"  oncommand="goDoCommand('cmd_bm_setpersonaltoolbarfolder');"/>
  58.   <command id="cmd_bm_setnewsearchfolder"        oncommand="goDoCommand('cmd_bm_setnewsearchfolder');"/>
  59.   <command id="cmd_bm_refreshlivemark"           oncommand="goDoCommand('cmd_bm_refreshlivemark');"/>
  60.   <command id="cmd_bm_refreshmicrosummary"       oncommand="goDoCommand('cmd_bm_refreshmicrosummary');"/>
  61.   <command id="cmd_bm_properties"                oncommand="goDoCommand('cmd_bm_properties');"/>
  62.   <command id="cmd_bm_rename"                    oncommand="goDoCommand('cmd_bm_rename');"/>
  63.   <command id="cmd_bm_import"                    oncommand="goDoCommand('cmd_bm_import');"/>
  64.   <command id="cmd_bm_export"                    oncommand="goDoCommand('cmd_bm_export');"/>
  65.   <command id="cmd_bm_movebookmark"              oncommand="goDoCommand('cmd_bm_movebookmark');"/>
  66.   <command id="cmd_bm_sortbyname"                oncommand="goDoCommand('cmd_bm_sortbyname');"/>
  67.  
  68.   <keyset id="editMenuKeys"/>
  69.   <keyset id="bookmarksManagerKeys">
  70.     <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel" command="cmd_close"/>
  71.     <key keycode="VK_ESCAPE" command="cmd_close"/>
  72.     <key id="bm_key_find" key="&edit.find.keybinding;" modifiers="accel" command="cmd_bm_find"/>
  73.     <key id="bm_key_properties" key="&edit.properties.keybinding;" modifiers="accel" command="cmd_bm_properties"/>
  74.   </keyset>
  75.  
  76.   <commandset id="baseMenuCommandSet" />
  77.   <keyset id="baseMenuKeyset" />
  78.  
  79.   <toolbox id="bookmarks-toolbox">
  80.     <menubar id="main-menubar">
  81.       <menu label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
  82.         <menupopup>
  83.           <menuitem label="&menuitem.newBookmark.label;" 
  84.                     accesskey="&menuitem.newBookmark.accesskey;"
  85.                     command="cmd_bm_newbookmark"/>
  86.           <menuitem label="&menuitem.newLivemark.label;" 
  87.                     accesskey="&menuitem.newLivemark.accesskey;"
  88.                     command="cmd_bm_newlivemark"/>
  89.           <menuitem label="&menuitem.newFolder.label;" 
  90.                     accesskey="&menuitem.newFolder.accesskey;"
  91.                     command="cmd_bm_newfolder"/>
  92.           <menuitem label="&menuitem.newSeparator.label;"
  93.                     accesskey="&menuitem.newSeparator.accesskey;"
  94.                     command="cmd_bm_newseparator"/>
  95.           <menuseparator/>
  96.           <menuitem label="&menuitem.import.label;"
  97.                     accesskey="&menuitem.import.accesskey;"
  98.                     command="cmd_bm_import"/>
  99.           <menuitem label="&menuitem.export.label;"
  100.                     accesskey="&menuitem.export.accesskey;"
  101.                     command="cmd_bm_export"/>
  102.           <menu id="online-menu" label="&flock.favs.manager.exportFrom;">
  103.             <menupopup id="online-popup"
  104.               datasources="rdf:flock-favorites"
  105.               ref="http://flock.com/rdf#OnlineBookmarksRoot">
  106.               <template>
  107.                 <rule rdf:type="http://flock.com/rdf#OnlineFolder">
  108.                   <menuitem uri="rdf:*"
  109.                             label="rdf:http://home.netscape.com/NC-rdf#Name"
  110.                             accountId="rdf:http://flock.com/rdf#userid"
  111.                             serviceId="rdf:http://flock.com/rdf#serviceId"
  112.                             oncommand="exportOnlineBookmarks(this);"
  113.                   />
  114.                 </rule>
  115.               </template>
  116.             </menupopup>
  117.           </menu>
  118.           <menuseparator/>
  119.           <menuitem label="&closeCmd.label;" command="cmd_close"
  120.                     key="key_close" accesskey="&closeCmd.accesskey;"/>
  121.         </menupopup>
  122.       </menu>
  123.  
  124.       <menu id="menu_edit">
  125.         <menupopup>
  126.           <menuitem id="menu_undo"/>
  127.           <menuitem id="menu_redo"/>
  128.           <menuseparator/>
  129.           <menuitem id="menu_cut"/>
  130.           <menuitem id="menu_copy"/>
  131.           <menuitem id="menu_paste"/>
  132.           <menuitem id="menu_delete"/>
  133.           <menuseparator/>
  134.           <menuitem id="menu_selectAll"/>
  135.           <menuseparator/>
  136.           <menuitem label="&command.moveBookmark.label;"
  137.                     accesskey="&command.moveBookmark.accesskey;"
  138.                     command="cmd_bm_movebookmark"/>
  139.           <menuseparator/>
  140.           <menuitem label="&command.refreshLivemark.label;"
  141.                     accesskey="&command.refreshLivemark.accesskey;"
  142.                     command="cmd_bm_refreshlivemark"/>
  143.           <menuseparator/>
  144.           <menuitem label="&command.properties.label;"
  145.                     key="bm_key_properties" accesskey="&command.properties.accesskey;"
  146.                     command="cmd_bm_properties"/>
  147.         </menupopup>
  148.       </menu>
  149.   
  150.       <menu label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  151.         <menupopup onpopupshowing="fillViewMenu(event)"
  152.                    oncommand="onViewMenuSortItemSelected(event);">
  153.           <menuitem id="viewCommandToolbar" type="checkbox" class="menuitem-iconic"
  154.                     label="&menuitem.view.command.toolbar.label;"
  155.                     accesskey="&menuitem.view.command.toolbar.accesskey;"
  156.                     oncommand="goToggleToolbar('command-toolbar', 'viewCommandToolbar'); event.stopPropagation();"
  157.                     checked="true"/>
  158.           <menu id="descending" label="&menuitem.view.show_columns.label;"
  159.                 accesskey="&menuitem.view.show_columns.accesskey;">
  160.             <menupopup id="columnsPopup" onpopupshowing="fillColumnsMenu(event);"
  161.                        oncommand="onViewMenuColumnItemSelected(event);"/>
  162.           </menu>
  163.           <menuseparator id="fill-after-this-node"/>
  164.           <menuitem id="natural" label="&menuitem.view.unsorted.label;"
  165.                     accesskey="&menuitem.view.unsorted.accesskey;"
  166.                     type="radio"
  167.                     resource="direction" name="sortSet"/>
  168.           <menuseparator id="fill-before-this-node"/>
  169.           <menuitem id="ascending" label="&sortAscending.label;"
  170.                     accesskey="&sortAscending.accesskey;"
  171.                     type="radio"
  172.                     resource="direction" name="sortDirectionSet"/>
  173.           <menuitem id="descending" label="&sortDescending.label;"
  174.                     accesskey="&sortDescending.accesskey;"
  175.                     type="radio"
  176.                     resource="direction" name="sortDirectionSet"/>
  177.         </menupopup>
  178.       </menu>
  179.       <menu id="helpMenu"/>
  180.     </menubar>
  181.  
  182.     <toolbar id="command-toolbar" tbalign="stretch" class="chromeclass-toolbar">
  183.       <toolbarbutton id="newbookmark" label="&menuitem.newBookmark.label;"
  184.                      accesskey="&menuitem.newBookmark.accesskey;"
  185.                      command="cmd_bm_newbookmark"/>
  186.       <toolbarbutton id="newfolder" label="&menuitem.newFolder.label;"
  187.                      accesskey="&menuitem.newFolder.accesskey;"
  188.                      command="cmd_bm_newfolder"/>
  189.       <toolbarbutton id="newseparator" label="&menuitem.newSeparator.label;" 
  190.                      accesskey="&menuitem.newSeparator.accesskey;"
  191.                      command="cmd_bm_newseparator"/>
  192.       <toolbarseparator/>
  193.       <toolbarbutton id="moveBookmark" label="&command.moveBookmarkShort.label;"
  194.                      accesskey="&command.moveBookmark.accesskey;"
  195.                      command="cmd_bm_movebookmark"/>
  196.       <toolbarseparator/>
  197.       <toolbarbutton id="properties" label="&command.properties.label;"
  198.                      accesskey="&command.properties.accesskey;"
  199.                      command="cmd_bm_properties"/>
  200.       <toolbarbutton id="rename" label="&command.rename.label;"
  201.                      accesskey="&command.rename.accesskey;"
  202.                      command="cmd_bm_rename"/>
  203.       <toolbarbutton id="delete" label="&command.delete.label;"
  204.                      accesskey="&command.delete.accesskey;"
  205.                      command="cmd_delete"/>
  206.     </toolbar>
  207.  
  208.     <toolbar id="bookmarks-search" align="center" pack="center">
  209.       <label value="&search.label;" accesskey="&search.accesskey;" control="search-box"/>
  210.       <textbox id="search-box" flex="1"
  211.                type="timed" timeout="500"
  212.                oncommand="document.getElementById('bookmarks-view').searchBookmarks(this.value)"/>
  213.     </toolbar>
  214.   </toolbox>
  215.  
  216.   <hbox flex="1">
  217.     <hbox id="bookmarksPanel">
  218.       <vbox class="container" flex="1" style="background-color: #CCCCCC;">
  219.         <slickExpander flex="1" class="expander-tree-parent inner-container" label="&flock.favs.manager.localFavs;" open="false" id="web_pages" titleflex="0" persist="open,hidden">   
  220.           <bookmarks-tree id="bookmark-folders-view" type="folders" flex="1" 
  221.                           persist="width" onselect="onViewSelected(event);" onfocus="onFocus(event);"/>
  222.         </slickExpander>
  223.   
  224.         <splitter id="sidebar-splitter" class="chromeclass-extrachrome sidebar-splitter" align="center">
  225.         <grippy class="sidebar-splitter-grippy"/>
  226.         </splitter>
  227.   
  228.         <slickExpander flex="1" class="expander-tree-parent inner-container" label="&flock.favs.manager.onlineFavs;" open="false" id="online_bookmarks" titleflex="0" persist="open,hidden">   
  229.           
  230.           <deck id="onlineBookmarksDeck" selectedIndex="1" flex="1">
  231.             <bookmarks-tree id="bookmark-folders-view" type="folders-online" flex="1" 
  232.                             persist="width" onselect="onViewSelected(event);" onfocus="onFocus(event);"/>
  233.             <vbox align="center">
  234.             <vbox />
  235.               <description value="&flock.favs.manager.onlineFavs.no;" />
  236.             </vbox>
  237.           </deck>
  238.           
  239.         </slickExpander>
  240.         <spacer class="css-spacer"/>
  241.       </vbox>
  242.     </hbox>
  243.     <splitter id="bookmark-views-splitter" collapse="before" persist="state">
  244.       <grippy/>
  245.     </splitter>
  246.     <bookmarks-tree id="bookmarks-view" flex="4" persist="width" 
  247.                     onselect="onViewSelected(event);" onfocus="onFocus(event);"/>
  248.   </hbox>
  249.   <statusbar id="statusbar">
  250.     <statusbarpanel id="statusbar-text" flex="1"/>
  251.   </statusbar>
  252.  
  253. </window>
  254.